<!-- 头部 -->
<include file="Public:header"/>

<div class="row-fluid" id="main">
    <div class="span8 offset2">
        <form class="form-horizontal " method="post" action="">
            <h3>个人基本信息</h3>
            <div class="control-group">
                <label class="control-label" for="inputGrade">班级</label>
                <div class="controls">
                    <html:select options='gradeList' name='grade_id'/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputName">姓名</label>
                <div class="controls">
                    <input type="text" name="name" id="inputName" placeholder="姓名">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputAge">年龄</label>
                <div class="controls">
                    <input type="text" name="age" id="inputAge" placeholder="年龄">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputAddress">籍贯</label>
                <div class="controls">
                    <input type="text" name="address" id="inputAddress" placeholder="籍贯">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputEducation">学历</label>
                <div class="controls">
                    <html:select options='education' name='education'/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputGraduate">毕业院校</label>
                <div class="controls">
                    <input type="text" name="graduate" id="inputGraduate" placeholder="毕业院校">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputGraduateadd">院校所在省</label>
                <div class="controls">
                    <input type="text" name="graduateadd" id="inputGraduateadd" placeholder="院校所在省">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputSubject">专业</label>
                <div class="controls">
                    <input type="text" name="subject" id="inputSubject" placeholder="专业">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="inputSubject">手机</label>
                <div class="controls">
                    <input class="phone" type="text" name="phone" id="inputSubject" placeholder="手机">
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputSubject">QQ</label>
                <div class="controls">
                    <input class="qq" type="text" name="qq" id="inputSubject" placeholder="QQ">
                </div>
            </div>
            <h3>就业愿望</h3>
            <div class="control-group">
                <label class="control-label" for="inputMethod">就业方式</label>
                <div class="controls">
                    <html:select options='method' name='method'/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputArea">就业地域</label>
                <div class="controls">
                    <html:select options='areaList' name='area_id'/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputPosition">就业职位</label>
                <div class="controls">
                    <html:select options='position' name='position'/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="inputPay">期望薪资</label>
                <div class="controls">
                    <html:select options='pay' name='pay'/>
                </div>
            </div>
            <h3>专业技能掌握</h3>
            <?php foreach($type as $key=>$val):?>
            <div class="control-group">
                <label class="control-label" for="<?=$val['name']?>"><?=$val['display']?></label>
                <div class="controls">
                    <select id="" name="<?=$val['name']?>" onchange="" ondblclick="" class="">
                        <option value="">--请选择--</option>
                        <option value="1">精通</option>
                        <option value="2">熟练掌握</option>
                        <option value="3">掌握</option>
                        <option value="4">熟悉</option>
                        <option value="5">了解</option>
                    </select>
                </div>
            </div>
            <?php endforeach;?>
            <div class="control-group">
                <div class="controls">
                    <label class="checkbox">
                        &nbsp;
                    </label>
                    <button onclick="return check();" class="btn btn-large btn-primary form-submit" type="submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;提交&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
    function check() {
        if ($('.phone').val().length != 11) {
            alert('请输入正确的11位手机号码后再提交');
            return false;
        }
        if ($('.qq').val() == '') {
            alert('请输入qq号码后再提交');
            return false;
        }
        return true;
    }
</script>
<!-- 底部 -->
<include file="Public:footer"/>
